package com.halixun.d2app.app;

import android.app.Activity;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * @ProjectName: MyOrderSystem
 * @Package: com.example.myordersystem.app
 * @ClassName: ActivityManage
 * @Description: java类作用描述
 * @Author: hdx
 * @CreateDate: 2019/9/26 13:49
 * @UpdateUser: hdx
 * @UpdateDate: 2019/9/26 13:49
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public abstract class ActivityManage {
    protected List<Activity> mActivitys = Collections
            .synchronizedList(new LinkedList<Activity>());
    public abstract void pushActivity(Activity activity);

    public abstract void popActivity(Activity activity);

    public abstract Activity currentActivity();

    public abstract void finishCurrentActivity();

    public abstract void finishActivity(Activity activity);

    public abstract void finishActivity(Class<?> cls);

    public abstract Activity findActivity(Class<?> cls);

    public abstract Activity getTopActivity();

    public abstract String getTopActivityName();

    public abstract void finishAllActivity();

    public abstract void appExit();
}
